package com.hxl.olympic.fragment;

import android.os.Build;

import androidx.annotation.RequiresApi;

import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.RefreshHeader;
import com.hxl.olympic.R;
import com.hxl.olympic.util.DemoDataProvider;

import butterknife.BindView;

public class InfoFragment extends BaseFragment {
    @BindView(R.id.layout_refresh)
    SmartRefreshLayout layoutRefresh;

    @RequiresApi(api = Build.VERSION_CODES.KITKAT)
    @Override
    public void initialize() {
        //下拉刷新动画
        RefreshHeader header = getRefreshHeader(DemoDataProvider.Item.PhoenixHeader);
        layoutRefresh.setRefreshHeader(header);
        layoutRefresh.autoRefresh();

    }

    @Override
    public void initViews() {

    }


    @Override
    public void initData() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_info;
    }
}
